Release 10.1A: OpenEdge Reporting:
Query/Results Administration and Development


Generating code from an application

You can also generate code by executing the AdminProgWrite4GL feature in a feature procedure. The AdminProgWrite4GL feature generates Progress 4GL code for the report, label, or export view of a query. However, the AdminProgWrite4GL feature does not generate code for the browse and form views of a query.

Arguments to the AdminProgWrite4GL feature allow you to specify an output file for the code and to determine whether the generated code is standalone Progress code or dependent on Results. The following statement shows the syntax required to execute the AdminProgWrite4GL feature in a feature procedure:

RUN aderes/sffire.p(INPUT "AdminProgWrite4GL", INPUT "proc-name, format", 
OUTPUT result).  

The proc-name argument specifies the name of the operating system file where Results stores the generated code. The format argument must be the character g or r. The character g generates standalone code. See Table 3–13 for information about the standalone code that the AdminProgWrite4GL feature generates for different types of views. The character r generates code that is dependent on the Results application. Use the Results-dependent format to generate and run queries in Results that produce data in preparation for use with other applications that are integrated into the Results menu system (for example, business graphics applications).


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095